Smush\Core\CDN\CDN_Transform A

Total Complexity 65
Dependencies 7
Dependents 1
Total lines 365
Lines of code 189
Logical lines of code 107
Comment lines 124
Methods 22
Properties 4

Methods 22

Method Rating Maintainability Complexity Lines of code
update_img_element_srcset_attribute()
S
58 6 15
update_alternate_attributes()
S
59 6 14
update_img_element_attributes()
S
56 5 19
update_element_background()
S
59 5 15
process_url()
S
60 4 13
transform_style()
S
63 4 11
element_has_excluded_keywords()
S
65 4 9
update_image_urls()
S
66 4 8
generate_and_use_fresh_srcset()
S
62 3 12
transform_page()
S
66 3 9
transform_element()
S
67 3 9
should_transform()
S
66 3 9
transform_image_url()
S
71 3 6
update_element_attributes()
S
70 2 7
update_other_element_attributes()
S
73 2 5
transform_elements()
S
74 2 5
__construct()
S
71 1 6
filter_background_url_before_process()
S
79 1 3
skip_background_image()
S
75 1 4
filter_before_process()
S
79 1 3
srcset_attribute_already_updated()
S
78 1 3
is_url_excluded_in_settings()
S
76 1 4